package com.example.teachingSystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.entity.Exam;
import com.example.teachingSystem.pojo.form.exam.AddExamForm;
import com.example.teachingSystem.pojo.form.exam.ExamPageQuery;
import com.example.teachingSystem.pojo.form.exam.UpdateExamForm;
import com.example.teachingSystem.pojo.vo.ExamVo;
import com.example.teachingSystem.utils.result.PageResult;
import com.example.teachingSystem.utils.result.Result;

/**
* @author 86147
* @description 针对表【exam(考试表)】的数据库操作Service
* @createDate 2023-11-27 21:43:54
*/
public interface ExamService extends IService<Exam> {
    Result<String> addExam(AddExamForm addExamForm);

    Result<String> updateExam(UpdateExamForm updatExamForm);

    Result<String> deleteExam(Long id);

    PageResult<ExamVo> getExamPageByStu(ExamPageQuery examPageQuery);

    PageResult<ExamVo> getExamPageByTea(ExamPageQuery examPageQuery);

    PageResult<ExamVo> getAllExamPage(ExamPageQuery examPageQuery);
}
